@extends('back.index')
@section('title','发布新闻-后台管理系统')
@section('mian')
    @if(count($errors))
        <script>
            alert('{!! $errors->first('title'),$errors->first('dist')!!}')
        </script>
    @endif
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">发布新闻</h2>
        <div class="container ">
            <div class="row">
                <div class="col-md-8">
                    <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
                        {{csrf_field()}}
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">新闻标题</label>
                            <div class="col-sm-10">
                                <input type="text" name="title" class="form-control" id="inputPassword3" placeholder="新闻标题">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">新闻正文</label>
                            <div class="col-sm-10">
                                <textarea name="dist" id="inputPassword3" cols="30" rows="6" style="resize: none" class="form-control" placeholder="请输入新闻正文内容"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input type="submit" class="btn btn-default" value="发布">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    @endsection